Skip to content

feat(chatbot): improve stability, model handling and testing#535

Open
b-vaibhaw wants to merge 1 commit into
FOSSEE:eSim-Chat-Bot-Semester-Long-Internship_Autumn-2025from
b-vaibhaw:eSim-Chat-Bot-Semester-Long-Internship_Autumn-2025
Open

feat(chatbot): improve stability, model handling and testing#535
b-vaibhaw wants to merge 1 commit into
FOSSEE:eSim-Chat-Bot-Semester-Long-Internship_Autumn-2025from
b-vaibhaw:eSim-Chat-Bot-Semester-Long-Internship_Autumn-2025

Conversation

@b-vaibhaw
Copy link
Copy Markdown

Purpose

This PR improves the eSim Chatbot by fixing stability issues, improving model selection and session handling, and adding testing utilities.

Approach

Fixes

  • Fixed STT backend detection priority.
  • Fixed Ollama stream KeyError crashes.
  • Fixed debug_error() crash when no project is open.
  • Fixed Windows CMD popup during Ollama startup.
  • Improved model fallback and text model selection.
  • Fixed duplicate chat sessions after restart.

Improvements

  • Added adaptive token budgeting for faster responses.
  • Added user-friendly "No models installed" guidance.
  • Centralized vision model keywords and model-fetching logic.

Testing

  • Added run_chatbot.py for standalone testing.
  • Added verify_chatbot.py for environment validation.

Compatibility

  • No breaking changes.
  • Backward compatible with existing chat history.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant